#ifndef RENWU_H
#define RENWU_H

#include <QWidget>
#include <QTimer>
#include <QKeyEvent>
#include <QPainter>
#include <QStringList>

class renwu : public QWidget
{
    Q_OBJECT

public:
    explicit renwu(QWidget *parent = nullptr);
    ~renwu();

protected:
    void keyPressEvent(QKeyEvent *event) override;
    void keyReleaseEvent(QKeyEvent *event) override;
    void paintEvent(QPaintEvent *event) override;

private:
    QTimer *donghuashijian;
    int currentImageIndex;
    bool isKeyPressedA;
    QStringList imagePaths;

    void updateImage();
};

#endif // RENWU_H
